from django.db import models


class CsBarcodes(models.Model):
    barcode = models.CharField(unique=True, max_length=32)
    goods_name = models.CharField(max_length=255)
    price = models.CharField(max_length=16)
    cost_price = models.CharField(max_length=16)
    spec = models.CharField(max_length=200)
    unit = models.CharField(max_length=10)
    flag = models.PositiveIntegerField(default=0)
    created = models.PositiveIntegerField()

    class Meta:
        managed = False
        db_table = 'cs_barcodes'
